import config from '@/config';
import http from '@/utils/request';

export default {
	daily: {
		url: `${config.API_URL}/reportproductivity/daily/`,
		name: '每天产能',
		get: async function (params) {
			return await http.get(this.url, params);
		},
	},
	hourly: {
		url: `${config.API_URL}/reportproductivity/hourly/`,
		name: '每小时产能',
		get: async function (params) {
			return await http.get(this.url, params);
		},
	},
	dailystat: {
		url: `${config.API_URL}/reportproductivity/dailystat/`,
		name: '生产统计（按天）',
		get: async function (params) {
			return await http.get(this.url, params);
		},
	},
	dailystat2: {
		url: `${config.API_URL}/reportproductivity/dailystat2/`,
		name: '生产统计（按天）',
		get: async function (params) {
			return await http.get(this.url, params);
		},
	},
	hourlystat: {
		url: `${config.API_URL}/reportproductivity/hourlystat/`,
		name: '生产统计（按小时）',
		get: async function (params) {
			return await http.get(this.url, params);
		},
	},
	hourlystat2: {
		url: `${config.API_URL}/reportproductivity/hourlystat2/`,
		name: '生产统计（按小时）',
		get: async function (params) {
			return await http.get(this.url, params);
		},
	},
	rt: {
		url: `${config.API_URL}/reportproductivity/rt/`,
		name: '完工下线或NG的实时数据',
		get: async function (params) {
			return await http.get(this.url, params);
		},
	},
};
